﻿using System.Collections.ObjectModel;
using System.Windows.Data;

namespace WpfApplication1
{
    class ViewModel
    {
        private readonly ObservableCollection<string> _contextMenuItems = new ObservableCollection<string>
        {
            "Shahar",
            "Eldad"
        };

        private readonly ObservableCollection<string> _contextMenuItemsSecondCollection = new ObservableCollection<string>
        {
            "Sela",
            "Group"
        };

        public ObservableCollection<string> ContextMenuItems
        {
            get { return _contextMenuItems; }
        }

        public ObservableCollection<string> ContextMenuItemsSecondCollection
        {
            get { return _contextMenuItemsSecondCollection; }
        }

        // extra info:
        // http://social.msdn.microsoft.com/Forums/vstudio/en-US/66101e8e-ad0d-4b84-8efa-e05493c28274/dynamic-collections-as-part-of-a-composite-collection?forum=wpf
        // first answer states CompositeCollection is not possible only via xaml
    }
}
